

/**
 *  积分接口
 *  anthor liyingqi
 *  834777203@qq.com
*/

import { request } from "@/http/axios"
import type * as Point from './type';


// 获取订单列表
export function getScoreList(data: Point.PointRequestData) {
  return request<Point.PointResponseData>({
    url: "?s=ApiBusiness/scorelog",
    method: "post",
    data
  })
}


// 积分支付

export function PointPay(data: Point.PointPayRequest) {
  return request({
    url: "?s=ApiBusiness/pay",
    method: "post",
    data
  })
}


// 支付状态轮训

export function payCallback(data: {ordernum: string}) {
  return request<ApiResponseData<{status: number}>>({
    url: "?s=ApiBusiness/notify",
    method: "post",
    data,
  })
}


